<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>LCOV - code analysis - /usr/include/c++/5/cstdlib</title>
  <link rel="stylesheet" type="text/css" href="../../../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LCOV - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
          <tr>
            <td width="10%" class="headerItem">Current view:</td>
            <td width="35%" class="headerValue"><a href="../../../../index.html">top level</a> - <a href="index.html">usr/include/c++/5</a> - cstdlib<span style="font-size: 80%;"> (source / <a href="cstdlib.func-sort-c.html">functions</a>)</span></td>
            <td width="5%"></td>
            <td width="15%"></td>
            <td width="10%" class="headerCovTableHead">Hit</td>
            <td width="10%" class="headerCovTableHead">Total</td>
            <td width="15%" class="headerCovTableHead">Coverage</td>
          </tr>
          <tr>
            <td class="headerItem">Test:</td>
            <td class="headerValue">code analysis</td>
            <td></td>
            <td class="headerItem">Lines:</td>
            <td class="headerCovTableEntry">0</td>
            <td class="headerCovTableEntry">1</td>
            <td class="headerCovTableEntryLo">0.0 %</td>
          </tr>
          <tr>
            <td class="headerItem">Date:</td>
            <td class="headerValue">2020-09-11 22:25:26</td>
            <td></td>
            <td class="headerItem">Functions:</td>
            <td class="headerCovTableEntry">0</td>
            <td class="headerCovTableEntry">0</td>
            <td class="headerCovTableEntryHi">-</td>
          </tr>
          <tr>
            <td class="headerItem">Legend:</td>
            <td class="headerValueLeg">            Lines:
            <span class="coverLegendCov">hit</span>
            <span class="coverLegendNoCov">not hit</span>
</td>
            <td></td>
          </tr>
          <tr><td><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
        </table>
      </td>
    </tr>

    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td>
<pre class="sourceHeading">          Line data    Source code</pre>
<pre class="source">
<a name="1"><span class="lineNum">       1 </span>            : // -*- C++ -*- forwarding header.</a>
<span class="lineNum">       2 </span>            : 
<span class="lineNum">       3 </span>            : // Copyright (C) 1997-2015 Free Software Foundation, Inc.
<span class="lineNum">       4 </span>            : //
<span class="lineNum">       5 </span>            : // This file is part of the GNU ISO C++ Library.  This library is free
<span class="lineNum">       6 </span>            : // software; you can redistribute it and/or modify it under the
<span class="lineNum">       7 </span>            : // terms of the GNU General Public License as published by the
<span class="lineNum">       8 </span>            : // Free Software Foundation; either version 3, or (at your option)
<span class="lineNum">       9 </span>            : // any later version.
<span class="lineNum">      10 </span>            : 
<span class="lineNum">      11 </span>            : // This library is distributed in the hope that it will be useful,
<span class="lineNum">      12 </span>            : // but WITHOUT ANY WARRANTY; without even the implied warranty of
<span class="lineNum">      13 </span>            : // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
<span class="lineNum">      14 </span>            : // GNU General Public License for more details.
<span class="lineNum">      15 </span>            : 
<span class="lineNum">      16 </span>            : // Under Section 7 of GPL version 3, you are granted additional
<span class="lineNum">      17 </span>            : // permissions described in the GCC Runtime Library Exception, version
<span class="lineNum">      18 </span>            : // 3.1, as published by the Free Software Foundation.
<span class="lineNum">      19 </span>            : 
<span class="lineNum">      20 </span>            : // You should have received a copy of the GNU General Public License and
<span class="lineNum">      21 </span>            : // a copy of the GCC Runtime Library Exception along with this program;
<span class="lineNum">      22 </span>            : // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
<span class="lineNum">      23 </span>            : // &lt;http://www.gnu.org/licenses/&gt;.
<span class="lineNum">      24 </span>            : 
<span class="lineNum">      25 </span>            : /** @file include/cstdlib
<span class="lineNum">      26 </span>            :  *  This is a Standard C++ Library file.  You should @c \#include this file
<span class="lineNum">      27 </span>            :  *  in your programs, rather than any of the @a *.h implementation files.
<span class="lineNum">      28 </span>            :  *
<span class="lineNum">      29 </span>            :  *  This is the C++ version of the Standard C Library header @c stdlib.h,
<span class="lineNum">      30 </span>            :  *  and its contents are (mostly) the same as that header, but are all
<span class="lineNum">      31 </span>            :  *  contained in the namespace @c std (except for names which are defined
<span class="lineNum">      32 </span>            :  *  as macros in C).
<span class="lineNum">      33 </span>            :  */
<span class="lineNum">      34 </span>            : 
<span class="lineNum">      35 </span>            : //
<span class="lineNum">      36 </span>            : // ISO C++ 14882: 20.4.6  C library
<span class="lineNum">      37 </span>            : //
<span class="lineNum">      38 </span>            : 
<span class="lineNum">      39 </span>            : #pragma GCC system_header
<span class="lineNum">      40 </span>            : 
<span class="lineNum">      41 </span>            : #include &lt;bits/c++config.h&gt;
<span class="lineNum">      42 </span>            : 
<span class="lineNum">      43 </span>            : #ifndef _GLIBCXX_CSTDLIB
<span class="lineNum">      44 </span>            : #define _GLIBCXX_CSTDLIB 1
<span class="lineNum">      45 </span>            : 
<span class="lineNum">      46 </span>            : #if !_GLIBCXX_HOSTED
<span class="lineNum">      47 </span>            : // The C standard does not require a freestanding implementation to
<span class="lineNum">      48 </span>            : // provide &lt;stdlib.h&gt;.  However, the C++ standard does still require
<span class="lineNum">      49 </span>            : // &lt;cstdlib&gt; -- but only the functionality mentioned in
<span class="lineNum">      50 </span>            : // [lib.support.start.term].
<span class="lineNum">      51 </span>            : 
<span class="lineNum">      52 </span>            : #define EXIT_SUCCESS 0
<span class="lineNum">      53 </span>            : #define EXIT_FAILURE 1
<span class="lineNum">      54 </span>            : 
<span class="lineNum">      55 </span>            : namespace std
<span class="lineNum">      56 </span>            : {
<span class="lineNum">      57 </span>            :   extern &quot;C&quot; void abort(void) throw () _GLIBCXX_NORETURN;
<span class="lineNum">      58 </span>            :   extern &quot;C&quot; int atexit(void (*)(void)) throw ();
<span class="lineNum">      59 </span>            :   extern &quot;C&quot; void exit(int) throw () _GLIBCXX_NORETURN;
<span class="lineNum">      60 </span>            : #if __cplusplus &gt;= 201103L
<span class="lineNum">      61 </span>            : # ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
<span class="lineNum">      62 </span>            :   extern &quot;C&quot; int at_quick_exit(void (*)(void)) throw ();
<span class="lineNum">      63 </span>            : # endif
<span class="lineNum">      64 </span>            : # ifdef _GLIBCXX_HAVE_QUICK_EXIT
<span class="lineNum">      65 </span>            :   extern &quot;C&quot; void quick_exit(int) throw() _GLIBCXX_NORETURN;
<span class="lineNum">      66 </span>            : # endif
<span class="lineNum">      67 </span>            : #endif
<span class="lineNum">      68 </span>            : } // namespace std
<span class="lineNum">      69 </span>            : 
<span class="lineNum">      70 </span>            : #else
<span class="lineNum">      71 </span>            : 
<span class="lineNum">      72 </span>            : #include &lt;stdlib.h&gt;
<span class="lineNum">      73 </span>            : 
<span class="lineNum">      74 </span>            : // Get rid of those macros defined in &lt;stdlib.h&gt; in lieu of real functions.
<span class="lineNum">      75 </span>            : #undef abort
<span class="lineNum">      76 </span>            : #undef abs
<span class="lineNum">      77 </span>            : #undef atexit
<span class="lineNum">      78 </span>            : #if __cplusplus &gt;= 201103L
<span class="lineNum">      79 </span>            : # ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
<span class="lineNum">      80 </span>            : #  undef at_quick_exit
<span class="lineNum">      81 </span>            : # endif
<span class="lineNum">      82 </span>            : #endif
<span class="lineNum">      83 </span>            : #undef atof
<span class="lineNum">      84 </span>            : #undef atoi
<span class="lineNum">      85 </span>            : #undef atol
<span class="lineNum">      86 </span>            : #undef bsearch
<span class="lineNum">      87 </span>            : #undef calloc
<span class="lineNum">      88 </span>            : #undef div
<span class="lineNum">      89 </span>            : #undef exit
<span class="lineNum">      90 </span>            : #undef free
<span class="lineNum">      91 </span>            : #undef getenv
<span class="lineNum">      92 </span>            : #undef labs
<span class="lineNum">      93 </span>            : #undef ldiv
<span class="lineNum">      94 </span>            : #undef malloc
<span class="lineNum">      95 </span>            : #undef mblen
<span class="lineNum">      96 </span>            : #undef mbstowcs
<span class="lineNum">      97 </span>            : #undef mbtowc
<span class="lineNum">      98 </span>            : #undef qsort
<span class="lineNum">      99 </span>            : #if __cplusplus &gt;= 201103L
<span class="lineNum">     100 </span>            : # ifdef _GLIBCXX_HAVE_QUICK_EXIT
<span class="lineNum">     101 </span>            : #  undef quick_exit
<span class="lineNum">     102 </span>            : # endif
<span class="lineNum">     103 </span>            : #endif
<span class="lineNum">     104 </span>            : #undef rand
<span class="lineNum">     105 </span>            : #undef realloc
<span class="lineNum">     106 </span>            : #undef srand
<span class="lineNum">     107 </span>            : #undef strtod
<span class="lineNum">     108 </span>            : #undef strtol
<span class="lineNum">     109 </span>            : #undef strtoul
<span class="lineNum">     110 </span>            : #undef system
<span class="lineNum">     111 </span>            : #undef wcstombs
<span class="lineNum">     112 </span>            : #undef wctomb
<span class="lineNum">     113 </span>            : 
<span class="lineNum">     114 </span>            : namespace std _GLIBCXX_VISIBILITY(default)
<span class="lineNum">     115 </span>            : {
<span class="lineNum">     116 </span>            : _GLIBCXX_BEGIN_NAMESPACE_VERSION
<span class="lineNum">     117 </span>            : 
<span class="lineNum">     118 </span>            :   using ::div_t;
<span class="lineNum">     119 </span>            :   using ::ldiv_t;
<span class="lineNum">     120 </span>            : 
<span class="lineNum">     121 </span>            :   using ::abort;
<span class="lineNum">     122 </span>            :   using ::abs;
<span class="lineNum">     123 </span>            :   using ::atexit;
<span class="lineNum">     124 </span>            : #if __cplusplus &gt;= 201103L
<span class="lineNum">     125 </span>            : # ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
<span class="lineNum">     126 </span>            :   using ::at_quick_exit;
<span class="lineNum">     127 </span>            : # endif
<span class="lineNum">     128 </span>            : #endif
<span class="lineNum">     129 </span>            :   using ::atof;
<span class="lineNum">     130 </span>            :   using ::atoi;
<span class="lineNum">     131 </span>            :   using ::atol;
<span class="lineNum">     132 </span>            :   using ::bsearch;
<span class="lineNum">     133 </span>            :   using ::calloc;
<span class="lineNum">     134 </span>            :   using ::div;
<span class="lineNum">     135 </span>            :   using ::exit;
<span class="lineNum">     136 </span>            :   using ::free;
<span class="lineNum">     137 </span>            :   using ::getenv;
<span class="lineNum">     138 </span>            :   using ::labs;
<span class="lineNum">     139 </span>            :   using ::ldiv;
<span class="lineNum">     140 </span>            :   using ::malloc;
<span class="lineNum">     141 </span>            : #ifdef _GLIBCXX_HAVE_MBSTATE_T
<span class="lineNum">     142 </span>            :   using ::mblen;
<span class="lineNum">     143 </span>            :   using ::mbstowcs;
<span class="lineNum">     144 </span>            :   using ::mbtowc;
<span class="lineNum">     145 </span>            : #endif // _GLIBCXX_HAVE_MBSTATE_T
<span class="lineNum">     146 </span>            :   using ::qsort;
<span class="lineNum">     147 </span>            : #if __cplusplus &gt;= 201103L
<span class="lineNum">     148 </span>            : # ifdef _GLIBCXX_HAVE_QUICK_EXIT
<span class="lineNum">     149 </span>            :   using ::quick_exit;
<span class="lineNum">     150 </span>            : # endif
<span class="lineNum">     151 </span>            : #endif
<span class="lineNum">     152 </span>            :   using ::rand;
<span class="lineNum">     153 </span>            :   using ::realloc;
<span class="lineNum">     154 </span>            :   using ::srand;
<span class="lineNum">     155 </span>            :   using ::strtod;
<span class="lineNum">     156 </span>            :   using ::strtol;
<span class="lineNum">     157 </span>            :   using ::strtoul;
<span class="lineNum">     158 </span>            :   using ::system;
<span class="lineNum">     159 </span>            : #ifdef _GLIBCXX_USE_WCHAR_T
<span class="lineNum">     160 </span>            :   using ::wcstombs;
<span class="lineNum">     161 </span>            :   using ::wctomb;
<span class="lineNum">     162 </span>            : #endif // _GLIBCXX_USE_WCHAR_T
<span class="lineNum">     163 </span>            : 
<span class="lineNum">     164 </span>            : #ifndef __CORRECT_ISO_CPP_STDLIB_H_PROTO
<span class="lineNum">     165 </span>            :   inline long
<span class="lineNum">     166 </span><span class="lineNoCov">          0 :   abs(long __i) { return __builtin_labs(__i); }</span>
<span class="lineNum">     167 </span>            : 
<span class="lineNum">     168 </span>            :   inline ldiv_t
<span class="lineNum">     169 </span>            :   div(long __i, long __j) { return ldiv(__i, __j); }
<span class="lineNum">     170 </span>            : #endif
<span class="lineNum">     171 </span>            : 
<span class="lineNum">     172 </span>            : #ifdef _GLIBCXX_USE_LONG_LONG
<span class="lineNum">     173 </span>            :   inline long long
<span class="lineNum">     174 </span>            :   abs(long long __x) { return __builtin_llabs (__x); }
<span class="lineNum">     175 </span>            : #endif
<span class="lineNum">     176 </span>            : 
<span class="lineNum">     177 </span>            : #if defined(__GLIBCXX_TYPE_INT_N_0)
<span class="lineNum">     178 </span>            :   inline __GLIBCXX_TYPE_INT_N_0
<span class="lineNum">     179 </span>            :   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x &gt;= 0 ? __x : -__x; }
<span class="lineNum">     180 </span>            : #endif
<span class="lineNum">     181 </span>            : #if defined(__GLIBCXX_TYPE_INT_N_1)
<span class="lineNum">     182 </span>            :   inline __GLIBCXX_TYPE_INT_N_1
<span class="lineNum">     183 </span>            :   abs(__GLIBCXX_TYPE_INT_N_1 __x) { return __x &gt;= 0 ? __x : -__x; }
<span class="lineNum">     184 </span>            : #endif
<span class="lineNum">     185 </span>            : #if defined(__GLIBCXX_TYPE_INT_N_2)
<span class="lineNum">     186 </span>            :   inline __GLIBCXX_TYPE_INT_N_2
<span class="lineNum">     187 </span>            :   abs(__GLIBCXX_TYPE_INT_N_2 __x) { return __x &gt;= 0 ? __x : -__x; }
<span class="lineNum">     188 </span>            : #endif
<span class="lineNum">     189 </span>            : #if defined(__GLIBCXX_TYPE_INT_N_3)
<span class="lineNum">     190 </span>            :   inline __GLIBCXX_TYPE_INT_N_3
<span class="lineNum">     191 </span>            :   abs(__GLIBCXX_TYPE_INT_N_3 __x) { return __x &gt;= 0 ? __x : -__x; }
<span class="lineNum">     192 </span>            : #endif
<span class="lineNum">     193 </span>            : 
<span class="lineNum">     194 </span>            : 
<span class="lineNum">     195 </span>            : _GLIBCXX_END_NAMESPACE_VERSION
<span class="lineNum">     196 </span>            : } // namespace
<span class="lineNum">     197 </span>            : 
<span class="lineNum">     198 </span>            : #if _GLIBCXX_USE_C99
<span class="lineNum">     199 </span>            : 
<span class="lineNum">     200 </span>            : #undef _Exit
<span class="lineNum">     201 </span>            : #undef llabs
<span class="lineNum">     202 </span>            : #undef lldiv
<span class="lineNum">     203 </span>            : #undef atoll
<span class="lineNum">     204 </span>            : #undef strtoll
<span class="lineNum">     205 </span>            : #undef strtoull
<span class="lineNum">     206 </span>            : #undef strtof
<span class="lineNum">     207 </span>            : #undef strtold
<span class="lineNum">     208 </span>            : 
<span class="lineNum">     209 </span>            : namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
<span class="lineNum">     210 </span>            : {
<span class="lineNum">     211 </span>            : _GLIBCXX_BEGIN_NAMESPACE_VERSION
<span class="lineNum">     212 </span>            : 
<span class="lineNum">     213 </span>            : #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
<span class="lineNum">     214 </span>            :   using ::lldiv_t;
<span class="lineNum">     215 </span>            : #endif
<span class="lineNum">     216 </span>            : #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
<span class="lineNum">     217 </span>            :   extern &quot;C&quot; void (_Exit)(int) throw () _GLIBCXX_NORETURN;
<span class="lineNum">     218 </span>            : #endif
<span class="lineNum">     219 </span>            : #if !_GLIBCXX_USE_C99_DYNAMIC
<span class="lineNum">     220 </span>            :   using ::_Exit;
<span class="lineNum">     221 </span>            : #endif
<span class="lineNum">     222 </span>            : 
<span class="lineNum">     223 </span>            : #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
<span class="lineNum">     224 </span>            :   using ::llabs;
<span class="lineNum">     225 </span>            : 
<span class="lineNum">     226 </span>            :   inline lldiv_t
<span class="lineNum">     227 </span>            :   div(long long __n, long long __d)
<span class="lineNum">     228 </span>            :   { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; }
<span class="lineNum">     229 </span>            : 
<span class="lineNum">     230 </span>            :   using ::lldiv;
<span class="lineNum">     231 </span>            : #endif
<span class="lineNum">     232 </span>            : 
<span class="lineNum">     233 </span>            : #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
<span class="lineNum">     234 </span>            :   extern &quot;C&quot; long long int (atoll)(const char *) throw ();
<span class="lineNum">     235 </span>            :   extern &quot;C&quot; long long int
<span class="lineNum">     236 </span>            :     (strtoll)(const char * __restrict, char ** __restrict, int) throw ();
<span class="lineNum">     237 </span>            :   extern &quot;C&quot; unsigned long long int
<span class="lineNum">     238 </span>            :     (strtoull)(const char * __restrict, char ** __restrict, int) throw ();
<span class="lineNum">     239 </span>            : #endif
<span class="lineNum">     240 </span>            : #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
<span class="lineNum">     241 </span>            :   using ::atoll;
<span class="lineNum">     242 </span>            :   using ::strtoll;
<span class="lineNum">     243 </span>            :   using ::strtoull;
<span class="lineNum">     244 </span>            : #endif
<span class="lineNum">     245 </span>            :   using ::strtof;
<span class="lineNum">     246 </span>            :   using ::strtold;
<span class="lineNum">     247 </span>            : 
<span class="lineNum">     248 </span>            : _GLIBCXX_END_NAMESPACE_VERSION
<span class="lineNum">     249 </span>            : } // namespace __gnu_cxx
<span class="lineNum">     250 </span>            : 
<span class="lineNum">     251 </span>            : namespace std
<span class="lineNum">     252 </span>            : {
<span class="lineNum">     253 </span>            : #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
<span class="lineNum">     254 </span>            :   using ::__gnu_cxx::lldiv_t;
<span class="lineNum">     255 </span>            : #endif
<span class="lineNum">     256 </span>            :   using ::__gnu_cxx::_Exit;
<span class="lineNum">     257 </span>            : #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
<span class="lineNum">     258 </span>            :   using ::__gnu_cxx::llabs;
<span class="lineNum">     259 </span>            :   using ::__gnu_cxx::div;
<span class="lineNum">     260 </span>            :   using ::__gnu_cxx::lldiv;
<span class="lineNum">     261 </span>            : #endif
<span class="lineNum">     262 </span>            :   using ::__gnu_cxx::atoll;
<span class="lineNum">     263 </span>            :   using ::__gnu_cxx::strtof;
<span class="lineNum">     264 </span>            :   using ::__gnu_cxx::strtoll;
<span class="lineNum">     265 </span>            :   using ::__gnu_cxx::strtoull;
<span class="lineNum">     266 </span>            :   using ::__gnu_cxx::strtold;
<span class="lineNum">     267 </span>            : } // namespace std
<span class="lineNum">     268 </span>            : 
<span class="lineNum">     269 </span>            : #endif // _GLIBCXX_USE_C99
<span class="lineNum">     270 </span>            : 
<span class="lineNum">     271 </span>            : #endif // !_GLIBCXX_HOSTED
<span class="lineNum">     272 </span>            : 
<span class="lineNum">     273 </span>            : #endif
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
    <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LCOV version 1.12</a></td></tr>
  </table>
  <br>

</body>
</html>
